package com.atguigu.spring.pojo;

import java.util.Arrays;
import java.util.Map;

public class student implements person {
    Integer sid;
    String sname;
    Integer age;
    String gender;
    private classes classes;
    private String[] hobby;
    private Map<String,teacher> teacherMap;

    public student(Integer sid, String sname, Integer age, String gender, com.atguigu.spring.pojo.classes classes, String[] hobby, Map<String, teacher> teacherMap) {
        this.sid = sid;
        this.sname = sname;
        this.age = age;
        this.gender = gender;
        this.classes = classes;
        this.hobby = hobby;
        this.teacherMap = teacherMap;
    }

    public student() {
    }


    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public com.atguigu.spring.pojo.classes getClasses() {
        return classes;
    }

    public void setClasses(com.atguigu.spring.pojo.classes classes) {
        this.classes = classes;
    }

    public String[] getHobby() {
        return hobby;
    }

    public void setHobby(String[] hobby) {
        this.hobby = hobby;
    }

    public Map<String, teacher> getTeacherMap() {
        return teacherMap;
    }

    public void setTeacherMap(Map<String, teacher> teacherMap) {
        this.teacherMap = teacherMap;
    }

    @Override
    public String toString() {
        return "student{" +
                "sid=" + sid +
                ", sname='" + sname + '\'' +
                ", age=" + age +
                ", gender='" + gender + '\'' +
                ", classes=" + classes +
                ", hobby=" + Arrays.toString(hobby) +
                ", teacherMap=" + teacherMap +
                '}';
    }
}


